package com.gnerv.cms.dto;

import com.gnerv.cms.entity.Org;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 基础平台-组织机构 添加修改 DTO
 *
 * @author gnerv
 * @date 2019/11/30
 **/
@Data
public class OrgSaveDTO {

    private String ukId;
    private String parentId;
    private String code;
    private String name;
    private Integer status;
    private Integer sort;

    private OrgInfoDTO orgInfo;

    public Org convert() {
        Org org = new Org();
        BeanUtils.copyProperties(this, org);
        return org;
    }
}
